/**
 * 
 */
package com.shequan.pbinfo.service.impl;

import java.util.List;

import com.shequan.common.bean.ResultDataStruct;
import com.shequan.pbinfo.bean.pojo.GovArea;
import com.shequan.pbinfo.dao.GovAreaDAO;
import com.shequan.pbinfo.service.GovAreaService;

/**
 * <P>
 * Copyright 2012.
 * </p>
 * <P>
 * All Rights Reserved.
 * </p>
 * @author YuJF
 * @version 1.0, 2012-3-7
 * @see com.shequan.pbinfo.service.impl.GovAreaServiceImpl 
 * @since 1.0
 */
public class GovAreaServiceImpl implements GovAreaService {
	private GovAreaDAO govAreaDao;

	public void setGovAreaDao(GovAreaDAO govAreaDao) {
		this.govAreaDao = govAreaDao;
	}

	/* (non-Javadoc)
	 * @see com.shequan.pbinfo.service.GovAreaService#queryLocationInfo()
	 */
	public ResultDataStruct<List<GovArea>> queryLocationInfo() {
		ResultDataStruct<List<GovArea>> rds=new ResultDataStruct<List<GovArea>>();
		List<GovArea> govareas=govAreaDao.selectAll();
		rds.setData(govareas);
		rds.setBusiSuccess(true);
		rds.setSuccess(true);
		return rds;
	}
}
